package main

import (
	"github.com/gin-gonic/gin"

	"gitee.com/wu-jin-feng/fgin"
)

func main() {
	f := fgin.Fgin{}
	r := f.GetHttpServer("./test.yaml")
	r.GET("/test", func(ctx *gin.Context) {
		// fgin.ReturnJson(ctx, 2000, "", fmt.Errorf("error error 8013test"))
		ctx.JSON(200, "test success")
	})
	f.Run(r)
}
